{% extends "base_page.html" %}
{% block title_detail %}| {{ chieftain.name }}{% endblock %}
{% block content %}
 <table>
  <tr><td>
  {% block nav_bar %}
   <table border="1">
    <tr>
    <!-- Active Stats -->
    <td width="60%" colspan="9" valign="bottom">
     <table width="100%">
      <tr>
       <td>Health:</td>
       <td>Energy:</td>
       <td>Stamina:</td>
      </tr>
      <tr>
       <td>
        <div id="health_update">
         {{ chieftain.health }}
        </div> / {{ chieftain.max_health }}
       </td>
       <td>
        <div id="energy_update">
         {{ chieftain.energy }}
        </div> / {{ chieftain.max_energy }}
       </td>
       <td>
        <div id="stamina_update">
         {{ chieftain.stamina }}
        </div> / {{ chieftain.max_stamina }}
       </td>
      </tr>
     </table>
    </td>

    <!-- Holdings -->
    <td>
      <table>
       <tr><td>Level: {{ chieftain.level }}</td></tr>
       <tr><td>Experience: {{ chieftain.experience }} /
               {{ chieftain.experience_to_level }}</td></tr>

       <tr><td>Gold: <div id="gold_update">{{ chieftain.gold }}</div>
          <a href="{{ links.bank }}">(Hoard)</a></td><tr>

       <tr><td>Clan: {{ chieftain.size }}<td></tr>
       <tr><td>Empire: {{ chieftain.empire }} hectares<td></tr>
       <tr><td>Land: {{ chieftain.land }} hectares<td></tr>
      </table>
    </td>
   </tr>
   <tr>
    <td><a href="{{ links.home }}">Home</a></td>
    <td><a href="{{ links.quests }}">Adventures</a></td>
    <td><a href="{{ links.bounties }}">Bounties</a></td>
    <td><a href="{{ links.empire }}">Empire</a></td>
    <td><a href="{{ links.bank }}">Bank</a></td>
    <td><a href="{{ links.hospital }}">Hospital</a></td>
    <td><a href="{{ links.offers }}">The Gods ({{ chieftain.favor_points }})</a></td>
    <td><a href="{{ links.battle }}">Battle</a></td>
    <td><a href="{{ links.inventory }}">Inventory</a></td>
    <td><a href="{{ links.clan }}">My Clan</a></td>
   </tr>
  </table>
  {% endblock %}
  </td></tr>
  <tr><td>
  {% block detail %}
  {% endblock %}
  </td></tr>
 </table>
{% endblock %}
